package cn.com.dhcc.ddi.stat.vo.wrapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.ddi.stat.vo.DataSyncStatVo;

public class DataSyncStatRowWrapper implements RowMapper<DataSyncStatVo> {

	@Override
	public DataSyncStatVo mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		DataSyncStatVo vo = new DataSyncStatVo();
		vo.setID(rs.getString("id"));
		vo.setNodeId(rs.getString("node_id"));
		vo.setCataId(rs.getString("cata_id"));
		vo.setExchType(rs.getString("exch_type"));
		vo.setTotal(rs.getString("total"));
		vo.setDataSize(rs.getString("data_size"));
		vo.setStatDate(rs.getTimestamp("stat_date"));
		vo.setMtime(rs.getTimestamp("mtime"));
		vo.setTotalList(rs.getString("total_list"));
		vo.setDataSizeList(rs.getString("data_size_list"));
		
		
		vo.setSum(rs.getString("sum"));
		vo.setNum(rs.getString("num"));
		vo.setNodeName(rs.getString("nodeName"));
		vo.setDatacatagoryName(rs.getString("datacatagoryName"));
		return vo;
	}

}
